package com.flash.mongodb.service;

import com.flash.mongodb.domain.StudentLog;
import com.flash.mongodb.mapper.StuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @description: TODO
* @author admin
* @date 2023/1/2611:41
* @version 1.0
*/
@Service
public class StuService {

    @Autowired
    StuMapper stuMapper;

    public List<StudentLog> getAll(){
        List<StudentLog> all = stuMapper.findAll();
        return all;
    }
}
